﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.Bliss.Infrastructure;
using System.Runtime.Serialization;

namespace com.Bliss
{
    [DataContract]
    public class Post: IMessage
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public int FromId { get; set; }
        [DataMember]
        public string Message { get; set; }
        [DataMember]
        public DateTime SendDate { get; set; }
        [DataMember]
        public int? ParentPostID { get; set; }
        [DataMember]
        public int? ToID { get; set; }
        //[DataMember]
        public virtual User PostedBy { get; set; }
        //[DataMember]
        public virtual User PostedTo { get; set; }
        //[DataMember]
        public virtual ICollection<Post> Comments {get;set;}
        //[DataMember]
        public virtual Post Parent { get; set; }
    }
}
